package com.pingpang.websocketchat;

import java.util.Set;

public class Message {

	private String cmd;//1.绑定上线 2.下线 3.单聊 4.群聊 5.获取用户信息 6获取群组用户信息
	private ChartUser from;//用户ID
	private ChartUser accept;//接受ID
	private String group;//组ID
	private String msg;//文本信息
	
	private Set<ChartUser> chatSet; 
	
	public String getCmd() {
		return cmd;
	}
	public void setCmd(String cmd) {
		this.cmd = cmd;
	}
	public ChartUser getFrom() {
		return from;
	}
	public void setFrom(ChartUser from) {
		this.from = from;
	}
	public ChartUser getAccept() {
		return accept;
	}
	public void setAccept(ChartUser accept) {
		this.accept = accept;
	}
	public String getGroup() {
		return group;
	}
	public void setGroup(String group) {
		this.group = group;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public Set<ChartUser> getChatSet() {
		return chatSet;
	}
	public void setChatSet(Set<ChartUser> chatSet) {
		this.chatSet = chatSet;
	}
	@Override
	public String toString() {
		return "Message [cmd=" + cmd + ", from=" + from + ", accept=" + accept + ", group=" + group + ", msg=" + msg
				+ ", chatSet=" + chatSet + "]";
	}
	
}
